package com.example.interviewrecorder

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.interviewrecorder.utils.LyyActivityCollector
import com.example.interviewrecorder.utils.LyyLogUtil

open class LyyBaseActivity: AppCompatActivity() {
    companion object{
        private const val TAG = "LyyBaseActivity"
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        LyyActivityCollector.addAct(this)
        LyyLogUtil.d(TAG,"Activity ${this.javaClass.name} onCreate")
    }

    override fun onDestroy() {
        super.onDestroy()
        LyyActivityCollector.removeAct(this)
        LyyLogUtil.d(TAG,"Activity ${this.javaClass.name} onDestroy")
    }
}